<template>
  <div class="layout">
    <header>
      <span></span>
      <input type="text" placeholder="热门搜索热门搜索" />
      <span>分类</span>
    </header>
    <main>
      <div class="block">
        <span class="demonstration"></span>
        <el-carousel height="150px">
          <el-carousel-item v-for="item in 4" :key="item">
            <h3 class="small">{{ item }}</h3>
          </el-carousel-item>
        </el-carousel>
      </div>
      <div class="yu">
        <span>成单奖励</span>
        <span>成单奖励</span>
        <span>成单奖励</span>
        <span>成单奖励</span>
        <span>成单奖励</span>
      </div>
       <div class="yu">
        <span>成单奖励</span>
        <span>成单奖励</span>
        <span>成单奖励</span>
        <span>成单奖励</span>
        <span>成单奖励</span>
      </div>
      <div class="rt"> 
          <div class="ty">
     
      </div>
        <div class="ey">
     
      </div>
      </div>
      
    </main>
    <footer>
      <router-link to="/index">首页</router-link>
      <router-link to="/my">我的</router-link>
    </footer>
  </div>
</template>
<style lang='css'>
.layout {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
header {
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: space-between;
}
main {
  flex: 1;
  overflow-y: scroll;
}
.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 150px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
footer {
  width: 100%;
  height: 40px;
  line-height: 40px;
  border: 1px solid skyblue;
  display: flex;
  justify-content: space-around;
}
.yu{
    
    display: flex;
    justify-content: space-around;
}
.rt{
    display: flex;
    justify-content: space-around;
}
.ty{
    width: 200px;
    height: 100px;
    background: skyblue;
}
.ey{
    width: 200px;
    height: 100px;
    background: pink;
}
</style>